package com.japhet.stripesdemo.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author guidesc
 * @since 2024-01-31
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_payment_method")
public class UserPaymentMethod extends Model<UserPaymentMethod> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("payment_method_id")
    private String paymentMethodId;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
